//智慧交通traffic页面的所有请求

import request from "../untial/api";
// 1.获取traffic页面表格数据
export function getTrafficApi(params) {
  return request({
    url: "/traffic",
    method: "get",
    params,
  });
}

// 2.删除单个数据api
export function deleteTrafficApi(data) {
  return request({
    url: "/deleteByidtraffic",
    method: "post",
    data,
  });
}

// 3.添加数据api
export function addTrafficApi(data) {
  return request({
    url: "/addtraffic",
    method: "post",
    data,
  });
}

// 4.修改数据api
export function editTrafficApi(data) {
  return request({
    url: "/edittraffic",
    method: "post",
    data,
  });
}
